
#ifndef _BOARD_H_
#define _BOARD_H_

#include <stdint-gcc.h>
#include <stm32h750xx.h>
#include <rtthread.h>
#include <stm32h7xx_hal.h>

#define DTCM_START_ADDR 0x20000000
#define DTCM_SIZE (128 * 1024)
#define D2_RAM_START_ADDR 0x30000000
#define D2_RAM_SIZE (288 * 1024)
#define D3_RAM_START_ADDR 0x38000000
#define D3_RAM_SIZE (64 * 1024)

enum sram_region
{
    Any,
    DTCM,
    D2_SRAM,
    D3_SRAM
};

void *memheap_alloc(enum sram_region sram, uint32_t size);

void Error_Handler(void);

int internal_sram_init(void);


#endif
